package com.my.demo.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.util.Date;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("feedback_log")
//反馈日志
public class FeedbackLog {

  @TableId(value = "feedback_index", type = IdType.AUTO)
  @TableField("feedback_index")
  private Integer feedbackIndex;
  private Integer userId;
  @TableField("log_data")
  private String data;
  @TableField("log_time")
  private Date time;

  public FeedbackLog(Integer userId, String data) {
    this.userId = userId;
    this.data = data;
    this.time = new Date(System.currentTimeMillis());
  }
}